requirejs(['jquery', 'Util', 'bootstrap', 'metisMenu', 'slimScroll', 'inspinia', 'swiper', 'lazyLoade'], function ($, Util) {

    $('.swiper-container').swiper();
    $('img').imglazyload();

    wx.ready(function () {
        wx.getLocation({
            type: 'gcj02',
            success: function (res) {
                $.post('/benefit/baiduApi', {
                    longitude: res.longitude,
                    latitude: res.latitude
                }, function (data) {
                    var ret = $.parseJSON(data);
					alert(data);
                    ret.result.addressComponent.city != '' ? Util.Alert('当前定位：' + ret.result.addressComponent.city) : Util.Alert('定位失败，请手动选择', 1);
                });
            }
        });
    });

});




